Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the fine structure coefficients only if not already set when adding EELSCLEdge to a model #67

Closed

Conversation

francisco-dlp
Copy link
Member

Description of the change

Fix a regression that resets the fine_structure_coeff when adding a EELSCLEdge to an EELSModel.

Progress of the PR

  • Change implemented (can be split into several points),
  • added tests,
  • add a changelog entry in the upcoming_changes folder (see upcoming_changes/README.rst),
  • Check formatting of the changelog entry (and eventual user guide changes) in the docs/readthedocs.org:exspy build of this PR (link in github checks)
  • ready for review.

Minimal example of the bug fix or the new feature

import exspy
import numpy as np
s = exspy.signals.EELSSpectrum(np.arange(100).reshape(10,10))
# Your new feature...

@francisco-dlp francisco-dlp added bug Something isn't working bug-fix labels Jul 9, 2024
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 87.30%. Comparing base (770f06f) to head (8d29439).
Report is 86 commits behind head on main.

Files with missing lines Patch % Lines
exspy/models/eelsmodel.py 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
- Coverage   87.77%   87.30%   -0.47%     
==========================================
  Files          67       67              
  Lines        7287     7287              
  Branches     1179     1180       +1     
==========================================
- Hits         6396     6362      -34     
- Misses        626      652      +26     
- Partials      265      273       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@francisco-dlp
Copy link
Member Author

Closing, since it is fixing an inexistent issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bug-fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant